/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package polimorfismo;

/**
 *
 * @author alumnom
 */
public class Cuadrado implements Figura{
    private double lado;
    
    public void getLado(double nLado)
    {
        this.lado = nLado;
    }
    
    // Implementar interfaz
    @Override 
    public double area()
    {
        return Math.pow(lado, 2);
    }
}
